<h1>Listing prices</h1>

<table>
  <tr>
    <th>Product</th>
    <th>Bag size</th>
    <th>Price</th>
  </tr>

<% @prices.each do |price| %>
  <tr>
    <td><%=h price.product_id %></td>
    <td><%=h price.bag_size %></td>
    <td><%=h price.price %></td>
    <td><%= link_to 'Show', price %></td>
    <td><%= link_to 'Edit', edit_price_path(price) %></td>
    <td><%= link_to 'Destroy', price, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New price', new_price_path %>